%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Scenario 8.4 Bank card usage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scenario 8.4 Bank card usage}

This scenario is about the customer that uses her bank card to pay at a POS through a payment terminal. This scenario is illustrated in figure \ref{fig:seq_8_4_Bank_card_usage} on page \pageref{fig:seq_8_4_Bank_card_usage}. 

Note that POS payments enter the SAB system via SWIFT. The sequence diagram that shows in detail how the incoming SWIFTMessage from the other bank is handled by SAB can be viewed in figure \ref{fig:seq_Incoming_SWIFT} on page \pageref{fig:seq_Incoming_SWIFT}. The only difference is that in this case the message goes to the \emph{POS System} in stead of the \emph{Interbank Message Parser}.

There, the POS payment is converted into a Transaction. Once this Transaction is handed to the \emph{Transaction Processing System} it is handled according to the diagram in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}. The POS Terminal keeps waiting for the \emph{Transaction Processing System} until a positive reply is received, indicating that the payment debit is processed correctly. Only then the payment is acknowledged. Because POS payments get a high priority the wait is very short; 95\% of all payments are confirmed within 10 seconds.

The reply coming from the \emph{Transaction Processing System} will again be sent out through SWIFT which is illustrated in detail in figure \ref{fig:seq_Outgoing_SWIFT} on page \pageref{fig:seq_Outgoing_SWIFT}. The only difference is that in this case the message comes from the \emph{POS System} in stead of the \emph{Interbank Message Generator}.

The use cases touched in this scenario are:
\begin{itemize}
  \item UC13: Issue payment with bank card
 \item UC11: Execute transaction
\end{itemize}


\begin{figure}[!ht]
    \centering
        \includegraphics[angle=90, width=0.6\textwidth]{Scenarios/scenario_img/8_4_Bank_card_usage.png}
    \caption{Bank card usage}
    \label{fig:seq_8_4_Bank_card_usage}
\end{figure}

